package com.lottery.im.base;

import android.app.Activity;
import com.trello.rxlifecycle2.LifecycleProvider;
import com.trello.rxlifecycle2.android.ActivityEvent;

/**
 * 基础presenter
 * Created by xybcoder on 2016/3/1.
 */
public abstract class BaseActivityPresenter<T extends BaseView> {

  protected LifecycleProvider<ActivityEvent> provider;
  protected Activity activity;
  protected T iView;

  public BaseActivityPresenter(Activity activity, T iView,
      LifecycleProvider<ActivityEvent> provider) {
    this.activity = activity;
    this.iView = iView;
    this.provider = provider;
  }

  public void init() {
    iView.initView();
  }
}
